/*
 * Copyright (c) 2020 Baidu.com, Inc. All Rights Reserved
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */

package com.baidubce.services.billing.model.renew;

import lombok.Data;
import lombok.ToString;

/**
 * auto renew resource
 */
@Data
@ToString
public class RenewResource {

    /**
     * the service type
     */
    private String serviceType;

    /**
     * region
     */
    private String region;

    /**
     * the short id of the resource
     */
    private String shortId;

    /**
     * the id of the resource
     */
    private String instanceId;

    /**
     * the time that the resource expire
     * yyyy-MM-ddTHH:mm:ssZ
     */
    private String expireTime;

    /**
     * whether the resource can set auto renew
     */
    private Boolean aloneRenewEnable = Boolean.TRUE;

    /**
     * whether the resource already set auto renew
     */
    private Boolean alreadyRenewSet = Boolean.FALSE;

    /**
     * the time unit of the auto renew rule
     */
    private String renewTimeUnit;

    /**
     * the time of the auto renew rule
     */
    private Integer renewTime;

    /**
     * the next time that renew the prepay resource
     * yyyy-MM-dd  CST
     */
    private String nextRenewTime;

}
